---
layout: "default"
title: "_NSStringCoreType"
description: "Swift documentation for protocol '_NSStringCoreType'."
keywords: "_NSStringCoreType,protocol,swift,documentation,characterAtIndex,copyWithZone,countByEnumeratingWithState,length"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">protocol _NSStringCoreType</code></div>


<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">_NSCopyingType, _NSFastEnumerationType, _ShadowProtocol</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>







<h3>Instance Methods</h3>
<div class="declaration" id="func-characteratindex_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-characteratindex_">func characterAtIndex(<wbr>_:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-characteratindex_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func characterAtIndex(index: Int) -&gt; UInt16</code>
    
    
</div></div>
</div>
<div class="declaration inherited" id="func-copywithzone_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-copywithzone_">func copyWithZone(<wbr>_:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-copywithzone_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func copyWithZone(zone: _SwiftNSZone) -&gt; AnyObject</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/_NSCopyingType/"><code>_NSCopyingType</code></a>    
</div></div>
</div>
<div class="declaration inherited" id="func-countbyenumeratingwithstate_objects_count_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-countbyenumeratingwithstate_objects_count_">func countByEnumeratingWithState(<wbr>_:<wbr>objects:<wbr>count:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-countbyenumeratingwithstate_objects_count_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func countByEnumeratingWithState(state: UnsafeMutablePointer&lt;_SwiftNSFastEnumerationState&gt;, objects: UnsafeMutablePointer&lt;AnyObject&gt;, count: Int) -&gt; Int</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/_NSFastEnumerationType/"><code>_NSFastEnumerationType</code></a>    
</div></div>
</div>
<div class="declaration" id="func-length">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-length">func length()</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-length"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func length() -&gt; Int</code>
    
    
</div></div>
</div>


